package com.innjia.sys.dao;

import com.innjia.base.dao.BaseDao;
import com.innjia.sys.entity.UserLandlordEntity;
import org.springframework.stereotype.Repository;

/**
 * 房东
 *
 * @author innjia
 * @email innjia@innjia.com
 * @date 2017-11-14 11:28:32
 */
@Repository
public interface UserLandlordDao extends BaseDao<UserLandlordEntity> {

    /**
     * 根据第三方uid查询文件
     *
     * @param entity
     * @return
     */
    UserLandlordEntity queryByUid(UserLandlordEntity entity);

    /**
     * 根据登陆用户查询有效的用户
     *
     * @param loginName
     * @return
     */
    UserLandlordEntity queryByLoginName(String loginName);

    /**
     * 根据号码查询用户
     *
     * @param phone
     * @return
     */
    UserLandlordEntity queryByPhone(String phone);
}
